package koala.kuangjiademo.util;

import java.util.List;

public abstract class IPopMenuAdapter<T> {
    private List<T> list;

    public IPopMenuAdapter(List<T> list) {
        this.list = list;
    }

    public T getData(int position) {
        return list.get(position);
    }

    public int getCount() {
        return list.size();
    }

    public abstract String getItem(int position);

    public abstract void onItemSelected(T item, int position);
}
